<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Title</title>
  </head>
  
  <body>
    <div class="get-class">
      <input name="get-name" type="text">
    </div>
  </body>
  
  <script>
    /* Node.removeChild() 删除元素，父节点引用调用该方法，参数为需要删除的子元素 */
    document.querySelector('.get-class').removeChild(document.querySelector('input'));
  </script>
</html>